package com.sp.scmdb.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Type;
import org.joda.time.DateTime;

import com.sp.scmdb.common.DomainObject;

@Entity
@Table(name = "OBJ_CALLALARM")
public class CallAlarm extends DomainObject {

	@Column(name = "labelID")
	private String labelID;

	@Column(name = "empID")
	private int empID;

	@Column(name = "lrmID")
	private int lrmID;

	@Column(name = "lrmName")
	private String lrmName;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "empID", insertable = false, updatable = false)
	@NotFound(action = NotFoundAction.IGNORE)
	private Employee employee;
	
	@Column(name = "alarmDate")
	@Type(type = "org.joda.time.contrib.hibernate.PersistentDateTime")
	private DateTime alarmDate;
	
	@Column(name = "confirmDate")
	@Type(type = "org.joda.time.contrib.hibernate.PersistentDateTime")
	private DateTime confirmDate;

	@Column(name = "rmk")
	private String rmk;
	
	
	public DateTime getConfirmDate() {
		return confirmDate;
	}

	public void setConfirmDate(DateTime confirmDate) {
		this.confirmDate = confirmDate;
	}

	public DateTime getAlarmDate() {
		return alarmDate;
	}

	public void setAlarmDate(DateTime alarmDate) {
		this.alarmDate = alarmDate;
	}

	public String getLabelID() {
		return labelID;
	}

	public void setLabelID(String labelID) {
		this.labelID = labelID;
	}

	public int getEmpID() {
		return empID;
	}

	public void setEmpID(int empID) {
		this.empID = empID;
	}

	public int getLrmID() {
		return lrmID;
	}

	public void setLrmID(int lrmID) {
		this.lrmID = lrmID;
	}

	public String getLrmName() {
		return lrmName;
	}

	public void setLrmName(String lrmName) {
		this.lrmName = lrmName;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public String getRmk() {
		return rmk;
	}

	public void setRmk(String rmk) {
		this.rmk = rmk;
	}

}
